from django.db import models
from django.contrib.auth.models import User
class Idc(models.Model):
    name = models.CharField("IDC名称",max_length=128,blank=False,default="")
    address = models.CharField("IDC地址",max_length=256,blank=False,default="")
    user = models.ForeignKey(User)
    phone = models.CharField("IDC联系电话", max_length=12)
    class Meta:
        db_table = "idc"

class Manufacture(models.Model):
    name = models.CharField(max_length=30)

class Car(models.Model):
    manufacture = models.ForeignKey(Manufacture)
    name = models.CharField(max_length=30)
